import os

to_path = r"C:\Users\kang_\Desktop\workspace\pig_pose\yolo\empty\labels"
os.makedirs(to_path, exist_ok=True)
for root, dirs, files in os.walk(r"C:\Users\kang_\Desktop\workspace\pig_pose\yolo\empty"):
    for file in files:
        name = file.split(".")[0]
        label = os.path.join(to_path, f"{name}.txt")
        with open(label, "w+") as f:
            f.write("")
